#-*-coding:utf-8-*-
import hou
class Takes(object):
    def __init__(self):
        super(Takes,self).__init__()


    def setAllowAutoTakeModeForLockedAssets(self,bool):
        if bool == True:
            hou.setPreference('take.autoincludeassets.val','1')
            # print('1')
        else:
            hou.setPreference('take.autoincludeassets.val','0')
            # print('0')

    def getAllowAutoTakeModeForLockedAssets(self):
        return hou.getPreference('take.autoincludeassets.val')
        # print('getAllowAutoTakeModeForLockedAssets')

